<template>
  <div class="common-layout" style="height:100%">
    <el-container>
      <el-header>Header</el-header>
      <el-container>
        <el-aside width="200px">
            <Menu :mData="menuData" style="height: 100%;"> </Menu>
        </el-aside>
        <el-container>
          <el-main>
              <slot></slot>
          </el-main>
          <el-footer>Footer</el-footer>
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
 import Menu from '@/components/menu/mo_menu.vue'
 import { menuData } from "@/moData";


export default defineComponent({
  name: 'APP',
  components: {
        Menu
  },data(){
      return {
          menuData
      }
  }
})
</script>

<style lang="less" scoped>
.el-container{
    height: 100%;
}
.el-header{
  color: var(--el-text-color-primary);
  background: var(--el-color-primary-light-8);
}

.el-aside{
    background: #456;
}

.el-main{
    background: #fff;
}

.el-footer{
    background:#345
}
</style>